const path = require('path');

module.exports = {
    mode: 'development', //模式
    entry:'./client/index.js',
    output:{
        filename:'client.js',
        path: path.resolve(__dirname, 'public')
    },
    module: {
        rules:[
            {
                test: /\.(jsx|js)$/,
                exclude: /node_module/,
                loader:'babel-loader'
            }
        ]
    }
}